package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.FlxBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface FlxService extends BaseService<FlxBean> {

	FlxBean getFlxBeanById(String id) throws Exception;
	
	void removeFlxBeanById(String id) throws Exception;
	
	void removeFlxBeanByIds(String ids) throws Exception;
	
	FlxBean saveFlxBean(FlxBean crm) throws Exception;
	
	FlxBean updateFlxBean(FlxBean crm) throws Exception;
	
	Page<FlxBean>  findFlxBeanByCond(FlxBean bean,
			Page<FlxBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveFlxBeanExt(String sql) throws Exception;

	String findFlxBeanExtCreate(String tableName) throws Exception;

	String findFlxBeanExtEdit(String tableName, String id)
			throws Exception;

	String findFlxBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasFlxBeanExtData(String tableName, String id)
			throws Exception;
}